package com.teacher.pojo.dto.term;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @author zfm
 * @date 2021/7/2 14:25
 */
@Data
public class TermUpdateDto {

    @NotNull(message = "id不能为空")
    private Long id;

    @ApiModelProperty(value = "学年名称")
    @NotBlank(message = "学年名称 不能为空")
    private String year;

    @ApiModelProperty(value = "是否为当前学期")
    @NotNull(message = "是否为当前学期不能为空")
    private Boolean isCurrent;

    @ApiModelProperty(value = "学期名称")
    @NotBlank(message = "学期名称 不能为空")
    private String term;
}
